package com.irdstudio.biz.drools.service;

import com.irdstudio.biz.drools.beans.RuleBean;
import com.irdstudio.biz.drools.common.BizRuleAgendaFilter;

import java.util.Map;

/**
 *  风控规则 服务接口
 */
public interface FireRuleService {

    /**
     * 根据参数 查询规则集
     * @param request
     * @return
     */
    public Map<String, Object> list(Map<String, Object> request);

    /**
     * 执行指定规则集
     * @param request
     * @return
     */
    public Map<String, Object> fire(RuleBean ruleBean);

    /**
     * drools规则执行处理方法
     * @param ruleBean
     * @param filter
     * @return
     */
    public RuleBean fireRule(RuleBean ruleBean, BizRuleAgendaFilter filter);

}
